From: Kan-Ru Chen Date: Sat, 17 Dec 2011 10:34:01 +0000 (+0800) Subject: Support `nostrip' DEB_BUILD_OPTIONS X-Git-Tag: archive/raspbian/1.1.9+ds1-4+rpi1^2^2~223 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=795e473de754a96d7e59ed8c662ff973f5b29b12;p=opencc.git Support `nostrip' DEB_BUILD_OPTIONS --- diff --git a/debian/changelog b/debian/changelog index bf8d943..b7c8e99 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ opencc (0.3.0-1) unstable; urgency=low * New upstream release * Remove autotools-dev and quilt from Build-Depends + * Support `nostrip' DEB_BUILD_OPTIONS * debian/patches/fix-big-endian-build.diff: merged upstream * debian/patches/fix-new-test-cases.patch: New patch. diff --git a/debian/rules b/debian/rules index 3bc514f..c81f1fa 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,13 @@ #!/usr/bin/make -f + +ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) + BUILD_TYPE=Release +else + BUILD_TYPE=Debug +endif + %: dh $@ override_dh_auto_configure: - dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON + dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_GETTEXT:BOOL=ON